package com.fromfuture.xuhuidoc.android.BroadcastReceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Author：何送军
 * creation time：2017/9/7
 **/
public class MyConsultRoomBroadcastReceiver02  {

    static Receivepatmsg_interface receivepatmsg_interface;

    public MyConsultRoomBroadcastReceiver02(Receivepatmsg_interface receivepatmsg_interface) {
        this.receivepatmsg_interface = receivepatmsg_interface;
    }

    //接收MyConsultRoomPlugin发来的广播
    public static class receivepatmsg extends BroadcastReceiver{
        @Override
        public void onReceive(Context context, Intent intent) {
            String msg=intent.getStringExtra("patmsg");
            if (msg!=null){
                receivepatmsg_interface.receivepatmsg(msg);
            }else {
                return;
            }

        }
    }

    public static interface Receivepatmsg_interface{
        void receivepatmsg(String info);
    }

}
